namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("PROMOTIONS_PRODUCTS")]
    public class PROMOTIONS_PRODUCTS : ObjectRow {
        
        public PROMOTIONS_PRODUCTS() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public PROMOTIONS_PRODUCTS(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected PROMOTIONS_PRODUCTS(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        /// <summary>
        /// 自增ID
        /// </summary>
        [Key("ID",true,true)]
        public int ID {
            get {
                return (System.Int32)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        /// <summary>
        /// 活动ID
        /// </summary>
        [Field("PROMOTIONS_ID")]
        public int PROMOTIONSID {
            get {
                return (System.Int32)GetValue("PROMOTIONSID");
            }
            set {
                SetValue("PROMOTIONSID", value);
            }
        }
        
        /// <summary>
        /// 促销产品ID
        /// </summary>
        [Field("PRODUCTS_SATISFY_ID")]
        public int PRODUCTSSATISFYID {
            get {
                return (System.Int32)GetValue("PRODUCTSSATISFYID");
            }
            set {
                SetValue("PRODUCTSSATISFYID", value);
            }
        }
        
        /// <summary>
        /// 促销条件
        /// </summary>
        [Field("SATISFY_VALUE")]
        public int SATISFYVALUE {
            get {
                return (System.Int32)GetValue("SATISFYVALUE");
            }
            set {
                SetValue("SATISFYVALUE", value);
            }
        }
        
        /// <summary>
        /// 促销单位
        /// </summary>
        [Field("SATISFY_UOM")]
        public string SATISFYUOM {
            get {
                return (System.String)GetValue("SATISFYUOM");
            }
            set {
                SetValue("SATISFYUOM", value);
            }
        }
        
        /// <summary>
        /// 赠送产品ID
        /// </summary>
        [Field("PRODUCTS_PRESENT_ID")]
        public int PRODUCTSPRESENTID {
            get {
                return (System.Int32)GetValue("PRODUCTSPRESENTID");
            }
            set {
                SetValue("PRODUCTSPRESENTID", value);
            }
        }
        
        /// <summary>
        /// 赠送条件
        /// </summary>
        [Field("PRESENT_VALUE")]
        public int PRESENTVALUE {
            get {
                return (System.Int32)GetValue("PRESENTVALUE");
            }
            set {
                SetValue("PRESENTVALUE", value);
            }
        }
        
        /// <summary>
        /// 赠送单位
        /// </summary>
        [Field("PRESENT_UOM")]
        public string PRESENTUOM {
            get {
                return (System.String)GetValue("PRESENTUOM");
            }
            set {
                SetValue("PRESENTUOM", value);
            }
        }
        
        /// <summary>
        /// 促销状态
        /// </summary>
        [Field("HANDSEL_TYPE")]
        public int HANDSELTYPE {
            get {
                return (System.Int32)GetValue("HANDSELTYPE");
            }
            set {
                SetValue("HANDSELTYPE", value);
            }
        }
        
        [Field("ACTIVE")]
        public bool ACTIVE {
            get {
                return (System.Boolean)GetValue("ACTIVE");
            }
            set {
                SetValue("ACTIVE", value);
            }
        }
        
        [Field("DOMAIN_ID")]
        public decimal DOMAINID {
            get {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set {
                SetValue("DOMAINID", value);
            }
        }
        
        [Field("LAST_UPDATER")]
        public string LASTUPDATER {
            get {
                return (System.String)GetValue("LASTUPDATER");
            }
            set {
                SetValue("LASTUPDATER", value);
            }
        }
        
        [Field("LAST_UPDATE_TIME")]
        public decimal LASTUPDATETIME {
            get {
                return (System.Decimal)GetValue("LASTUPDATETIME");
            }
            set {
                SetValue("LASTUPDATETIME", value);
            }
        }
        
        [Field("CREATE_TIME")]
        public decimal CREATETIME {
            get {
                return (System.Decimal)GetValue("CREATETIME");
            }
            set {
                SetValue("CREATETIME", value);
            }
        }
    }
}
